const state = {
  isCollapse: false
}
const mutations = {
  collapse (state) {
    const flag = state.isCollapse
    state.isCollapse = !flag
  }
}
const actions = {
  collapse ({ commit }) {
    commit('collapse')
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}